﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.mdx;

namespace SharpSqlAnalyzer.stmt.mdx
{
	// Token: 0x02000196 RID: 406
	public class TMdxCreateMember : TCustomSqlStatement
	{
		// Token: 0x06000E0B RID: 3595 RVA: 0x0030958D File Offset: 0x0030778D
		public TMdxCreateMember(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmdxcreatemember;
		}

		// Token: 0x06000E0C RID: 3596 RVA: 0x003095A1 File Offset: 0x003077A1
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			this.createMemberNode = (TMdxCreateMemberNode)this.rootNode;
			return 0;
		}

		// Token: 0x1700028B RID: 651
		// (get) Token: 0x06000E0D RID: 3597 RVA: 0x003095C7 File Offset: 0x003077C7
		public virtual TMdxWithMemberNode Specification
		{
			get
			{
				return this.createMemberNode.Specification;
			}
		}

		// Token: 0x06000E0E RID: 3598 RVA: 0x003095D4 File Offset: 0x003077D4
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000E0F RID: 3599 RVA: 0x003095E4 File Offset: 0x003077E4
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.Specification.acceptChildren(v);
			v.postVisit(this);
		}

		// Token: 0x04001322 RID: 4898
		private TMdxCreateMemberNode createMemberNode;
	}
}
